//------------------------------------------------------------------------------
//
// ...
// author: 喵大斯( as3er.net )
// created: 2015/8/25
// copyright (c) 2015 喵大斯( aosnow@yeah.net )
//
//------------------------------------------------------------------------------
/// <reference path='jquery.d.ts'/>
/**
 * 指定的参数是不是空对象、未定义、null、空字符串
 * @param target
 */
function empty(target) {
    var r = false;
    target = $.trim(target);
    if (target == "" || target == null || typeof (target) == "undefined" || $.isEmptyObject(target))
        r = true;
    return r;
}
/**
 * 预约状态描述
 * @param s 状态编号
 * @returns {string}
 */
function state_ns(s) {
    switch (s) {
        case 1:
            return "待确认";
        case 2:
            return "已出现";
        case 3:
            return "已过期";
        default:
            return "未知";
    }
}
/**
 * 短信发送状态描述
 * @param state 状态编号
 * @returns {string}
 */
function sms_ns(state) {
    return state == 1 ? "已发送短信" : "未发送短信";
}
